package com.zhouyu.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

//@Component
public abstract class ChouXiangService {


	@Autowired
	private User user;

	public void test(){
		System.out.println(a());
		return;
	}

	//加上这个之后，每次注入的user都会是不同的对象，前提是必须@Scope("prototype")是圆形
	@Lookup("user")
	public User a(){

		return null;
	}

}
